package com.wjy.qs.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.wjy.common.base.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author ybxxszl
 * @since 2019-04-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "DesignTemplet对象", description = "")
public class DesignTemplet extends BaseEntity implements Serializable {

    public static final String DESIGN_TEMPLET_ID = "design_templet_id";
    public static final String DESIGN_TEMPLET_NAME = "design_templet_name";
    public static final String FINISH_TIME = "finish_time";
    public static final String START_RECOVERY_TIME = "start_recovery_time";
    public static final String END_RECOVERY_TIME = "end_recovery_time";
    public static final String STATE = "state";
    public static final String LINK = "link";
    public static final String AUTHOR_ID = "author_id";
    public static final String LOGIC_DELETE = "logic_delete";
    public static final String VERSION = "version";
    public static final String INSERT_ID = "insert_id";
    public static final String INSERT_TIME = "insert_time";
    public static final String UPDATE_ID = "update_id";
    public static final String UPDATE_TIME = "update_time";
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "设计模板ID")
    @TableId(value = "design_templet_id", type = IdType.UUID)
    private String designTempletId;
    @ApiModelProperty(value = "设计模板名称")
    @TableField("design_templet_name")
    private String designTempletName;
    @ApiModelProperty(value = "设计模板完成时间")
    @TableField("finish_time")
    private Date finishTime;
    @ApiModelProperty(value = "设计模板开始回收时间")
    @TableField("start_recovery_time")
    private Date startRecoveryTime;
    @ApiModelProperty(value = "设计模板结束回收时间")
    @TableField("end_recovery_time")
    private Date endRecoveryTime;
    @ApiModelProperty(value = "设计模板状态")
    @TableField("state")
    private Integer state;
    @ApiModelProperty(value = "设计模板链接")
    @TableField("link")
    private String link;
    @ApiModelProperty(value = "作者ID")
    @TableField("author_id")
    private String authorId;
    @ApiModelProperty(value = "逻辑删除")
    @TableField(value = "logic_delete", fill = FieldFill.INSERT)
    @TableLogic
    private Integer logicDelete;
    @ApiModelProperty(value = "乐观锁")
    @TableField(value = "version", fill = FieldFill.INSERT)
    @Version
    private Integer version;
    @ApiModelProperty(value = "添加人ID")
    @TableField(value = "insert_id", fill = FieldFill.INSERT)
    private String insertId;
    @ApiModelProperty(value = "添加时间")
    @TableField(value = "insert_time", fill = FieldFill.INSERT)
    private Date insertTime;
    @ApiModelProperty(value = "更新人ID")
    @TableField(value = "update_id", fill = FieldFill.UPDATE)
    private String updateId;
    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

}
